package com.example.ObserverPattern_Listener;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <pre>
 * 功能描述：
 * </pre>
 *
 * @author: 李明杰
 * @date: 2023/3/9 14:05
 */
@RestController
public class EventController {
    @Resource
    EmailService emailService;

    @GetMapping("testEvent")
    public void testEvent() {
        emailService.sendEmail("addrsss2", "content2");
    }
}
